package models

import "gorm.io/gorm"

type Problem struct {
	gorm.Model
	Title       string      `gorm:"type:varchar(30)" json:"title"`
	Content     string      `gorm:"type:varchar(30)" json:"content"`
	Img         string      `gorm:"type:varchar(255)" json:"img"`
	Status      uint        `gorm:"type:varchar(30)"`
	ProblemType ProblemType `gorm:"foreignKey:Status"`
}

type ProblemType struct {
	gorm.Model
	Name string `gorm:"type:varchar(100)" json:"name"`
}
